package org.rjxh.examfront.serviceTest;

import org.junit.jupiter.api.Test;
import org.rjxh.examfront.pojo.ExamRespond;
import org.rjxh.examfront.service.IExamRespondService;
import org.springframework.boot.test.context.SpringBootTest;

import javax.annotation.Resource;
import java.util.ArrayList;

@SpringBootTest
public class ExamRespond1 {
    @Resource
    private IExamRespondService examRespondService;
    @Test
    public void test() {
        ArrayList<ExamRespond> examResponds = new ArrayList<>();
        for (long i = 1; i < 10; i++) {
            ExamRespond examRespond = new ExamRespond(i,i*1000,"1","3L");
            examResponds.add(examRespond);
        }
        for (long i = 1; i < 10; i++) {
            ExamRespond examRespond = new ExamRespond(i,i*100,"1","3L");
            examResponds.add(examRespond);
        }
        System.out.println(examRespondService.saveBatch(examResponds));

    }

}
